﻿using System;
using System.Collections.Generic;
using System.Text;

using XRpgLibrary.ScriptClasses;
using XRpgLibrary.CharacterClasses;

using Microsoft.Xna.Framework;

namespace XRpgLibrary.Scripts.Global
{
    public class TestScript : GameScript
    {
        private float speed;

        public TestScript(float speed = 200f)
        {
            this.speed = speed;
        }

        public override void Execute(Character sender, object trigger, ScriptContext context, GameTime gameTime)
        {
            context.Player.Sprite.Speed = this.speed;
            context.Game.InterfaceManager.Textbox("Changed the player speed to *{0}*!", this.speed);
        }
    }
}
